package com.jieao.content.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description 文章评论表
 * @Author weifanl
 * @Date2020/5/21 15:34
 **/
@Data
@TableName("content_article_comment")
public class ArticleComment implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId
    private  Long   id;			        //id
    private  Long   pid;			    //回复评论id
    private  Long   articleId;			//文章id
    private  Long   userId;			//评论人id
    private  String   userName;			//评论人昵称

    private  Long   replyId;			//回复人id
    private  String   replyName;			//回复人昵称
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;           //评论时间
    private String content;             //评论内容
    private Integer isRead;            //是否阅读: 0.未阅读 1.已阅读
}
